import _axios from './axios';


/**
 * 获取音乐 url
 */

function playsong(ID) {
    return _axios({
        url: "song/url",
        params: {
            id:ID
        }
    })
}

//歌词
function lyric(id) {
    return _axios({
        url: "/lyric",
        params: {
            id,
        }
    })
}

//包含这首歌的歌单
function simiPlaylist(id){
    return _axios({
        url:"simi/playlist",
        method:"GET",
        params:{
            id: id,

        }
    })
}


//获取，喜欢这首歌的人也听

function simiSong(id){
    return _axios({
        url:"simi/song",
        method:"GET",
        params:{
            id: id,
        }
    })
}

// 评论

function comment(id){
    return _axios({
        url:"comment/hot",
        method:"GET",
        params:{
            id: id,
            type:2
        }
    })
}

// 所有评论
function songtalk(nowid){
    return _axios({
        url:"comment/music",
        method:"GET",
        params:{
            id:nowid,
            limit:10
        }
    })
}

export {playsong,lyric,simiPlaylist,simiSong,comment,songtalk}